trigger DupeCheck on Lead (after insert, after update, before insert,before update) {


  if(trigger.isBefore)  
  {      
        if (!OORDuplicateCheck.IsRecursive() ){
              OORDuplicateCheck.GetRecordTypes();  
              OORDuplicateCheck.DeDupeAccountPhone(Trigger.new, Trigger.oldMap,Trigger.isInsert); }
  }
                                
                
         
  else if(trigger.isAfter)
  {
    if (!OORDuplicateCheck.IsRecursive() ) {
        OORDuplicateCheck.DeDupeLeadAccount(Trigger.newMap, Trigger.oldMap,Trigger.isInsert);
            }
    
  }
  
   
}